package com.hxs.learn.entity.core;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author kevin
 */
@Data
@Alias("billSequence")
@TableName(value = "sys_bill_sequence")
@EqualsAndHashCode(callSuper = false)
public class BillSequence implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(value = "code", strategy = FieldStrategy.NOT_EMPTY)
    @NotNull(message = "主键id描述不能为空!")
    private String code;

    @TableField(value = "sequence", strategy = FieldStrategy.NOT_EMPTY)
    @NotNull(message = "序列值不能为空!")
    private Integer sequence;

}
